/**
 * 
 */
Ext.define('Server', {
	extend: 'Ext.tab.Panel',
	alias: 'server',
	closable: false,
    
    initComponent: function() {
    	me_server_server = this;
    	Ext.apply(me_server_server, {
			activeTab: 0,
			//id: '__server__',
            collapsible: false,
			//enableTabScroll: true,
			height: '100%',
			width: '100%',
			plain: true,
			items: [
				me_server_server.serverTab(),
				me_server_server.profileTab()
			]
    	});
    	me_server_server.callParent(arguments);
    	me_server_server.serverTab.on('serversmodified', function(servers){
    		me_server_server.profileTab.onServersModified(servers);
		});
	},
	
	serverTab: function(){
		this.serverTab = Ext.create('server.server', {});
		return this.serverTab;
	},
	
	profileTab: function(){
		this.profileTab = Ext.create('server.profile', {});
		return this.profileTab;
	}
});
